Optimal. Leaf size=88 \[ -\frac{1}{2} \sqrt{\frac{\pi }{2}} e^{-2 a} \sqrt{b} \text{Erf}\left (\sqrt{2} \sqrt{b} x\right )+\frac{1}{2} \sqrt{\frac{\pi }{2}} e^{2 a} \sqrt{b} \text{Erfi}\left (\sqrt{2} \sqrt{b} x\right )-\frac{\sinh ^2\left (a+b x^2\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0676429, antiderivative size = 88, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {5330, 5617, 5314, 5298, 2204, 2205} \[ -\frac{1}{2} \sqrt{\frac{\pi }{2}} e^{-2 a} \sqrt{b} \text{Erf}\left (\sqrt{2} \sqrt{b} x\right )+\frac{1}{2} \sqrt{\frac{\pi }{2}} e^{2 a} \sqrt{b} \text{Erfi}\left (\sqrt{2} \sqrt{b} x\right )-\frac{\sinh ^2\left (a+b x^2\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5330
Rule 5617
Rule 5314
Rule 5298
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int \frac{\sinh ^2\left (a+b x^2\right )}{x^2} \, dx &=-\frac{\sinh ^2\left (a+b x^2\right )}{x}+(4 b) \int \cosh \left (a+b x^2\right ) \sinh \left (a+b x^2\right ) \, dx\\ &=-\frac{\sinh ^2\left (a+b x^2\right )}{x}+(2 b) \int \sinh \left (2 \left (a+b x^2\right )\right ) \, dx\\ &=-\frac{\sinh ^2\left (a+b x^2\right )}{x}+(2 b) \int \sinh \left (2 a+2 b x^2\right ) \, dx\\ &=-\frac{\sinh ^2\left (a+b x^2\right )}{x}-b \int e^{-2 a-2 b x^2} \, dx+b \int e^{2 a+2 b x^2} \, dx\\ &=-\frac{1}{2} \sqrt{b} e^{-2 a} \sqrt{\frac{\pi }{2}} \text{erf}\left (\sqrt{2} \sqrt{b} x\right )+\frac{1}{2} \sqrt{b} e^{2 a} \sqrt{\frac{\pi }{2}} \text{erfi}\left (\sqrt{2} \sqrt{b} x\right )-\frac{\sinh ^2\left (a+b x^2\right )}{x}\\ \end{align*}
Mathematica [A] time = 0.225957, size = 94, normalized size = 1.07 \[ \frac{\sqrt{2 \pi } \sqrt{b} x (\sinh (2 a)-\cosh (2 a)) \text{Erf}\left (\sqrt{2} \sqrt{b} x\right )+\sqrt{2 \pi } \sqrt{b} x (\sinh (2 a)+\cosh (2 a)) \text{Erfi}\left (\sqrt{2} \sqrt{b} x\right )-4 \sinh ^2\left (a+b x^2\right )}{4 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.038, size = 86, normalized size = 1. \begin{align*}{\frac{1}{2\,x}}-{\frac{{{\rm e}^{-2\,a}}{{\rm e}^{-2\,b{x}^{2}}}}{4\,x}}-{\frac{{{\rm e}^{-2\,a}}\sqrt{\pi }\sqrt{2}}{4}\sqrt{b}{\it Erf} \left ( x\sqrt{2}\sqrt{b} \right ) }-{\frac{{{\rm e}^{2\,a}}{{\rm e}^{2\,b{x}^{2}}}}{4\,x}}+{\frac{{{\rm e}^{2\,a}}b\sqrt{\pi }}{2}{\it Erf} \left ( \sqrt{-2\,b}x \right ){\frac{1}{\sqrt{-2\,b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.17014, size = 82, normalized size = 0.93 \begin{align*} -\frac{\sqrt{2} \sqrt{b x^{2}} e^{\left (-2 \, a\right )} \Gamma \left (-\frac{1}{2}, 2 \, b x^{2}\right )}{8 \, x} - \frac{\sqrt{2} \sqrt{-b x^{2}} e^{\left (2 \, a\right )} \Gamma \left (-\frac{1}{2}, -2 \, b x^{2}\right )}{8 \, x} + \frac{1}{2 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.86221, size = 1058, normalized size = 12.02 \begin{align*} -\frac{\cosh \left (b x^{2} + a\right )^{4} + 4 \, \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right )^{3} + \sinh \left (b x^{2} + a\right )^{4} + \sqrt{2} \sqrt{\pi }{\left (x \cosh \left (b x^{2} + a\right )^{2} \cosh \left (2 \, a\right ) + x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (2 \, a\right ) +{\left (x \cosh \left (2 \, a\right ) + x \sinh \left (2 \, a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} + 2 \,{\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (2 \, a\right ) + x \cosh \left (b x^{2} + a\right ) \sinh \left (2 \, a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt{-b} \operatorname{erf}\left (\sqrt{2} \sqrt{-b} x\right ) + \sqrt{2} \sqrt{\pi }{\left (x \cosh \left (b x^{2} + a\right )^{2} \cosh \left (2 \, a\right ) - x \cosh \left (b x^{2} + a\right )^{2} \sinh \left (2 \, a\right ) +{\left (x \cosh \left (2 \, a\right ) - x \sinh \left (2 \, a\right )\right )} \sinh \left (b x^{2} + a\right )^{2} + 2 \,{\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (2 \, a\right ) - x \cosh \left (b x^{2} + a\right ) \sinh \left (2 \, a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt{b} \operatorname{erf}\left (\sqrt{2} \sqrt{b} x\right ) + 2 \,{\left (3 \, \cosh \left (b x^{2} + a\right )^{2} - 1\right )} \sinh \left (b x^{2} + a\right )^{2} - 2 \, \cosh \left (b x^{2} + a\right )^{2} + 4 \,{\left (\cosh \left (b x^{2} + a\right )^{3} - \cosh \left (b x^{2} + a\right )\right )} \sinh \left (b x^{2} + a\right ) + 1}{4 \,{\left (x \cosh \left (b x^{2} + a\right )^{2} + 2 \, x \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right ) + x \sinh \left (b x^{2} + a\right )^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sinh ^{2}{\left (a + b x^{2} \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sinh \left (b x^{2} + a\right )^{2}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]